#ifndef CRC16_H
#define CRC16_H
#include "at32f4xx.h"
#ifdef __cplusplus
extern "C" {
#endif

unsigned short CRC16(unsigned char *puchMsg,unsigned short usDataLen);

extern unsigned short electr_meter_CRC16(u8 *ptr, u16 len);
extern unsigned short ModBusCRC16(const void *s, int n);
#ifdef __cplusplus
}
#endif
#endif 

